<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Insert title here</title>
    <link rel="stylesheet" type="text/css" href="css/page.css">
</head>
<body>
<%@include file="head.jsp" %>
<div class="bg1">
    <ul>
        <li><a href="${pageContext.request.contextPath}/humanIn"><input type="button" value="所有来访信息" class="button2"/></a></li><br/>
        <li><a href="${pageContext.request.contextPath}/humanOut"><input type="button" value="所有访问结束信息" class="button1"/></a></li><br/>
        <li><a href="${pageContext.request.contextPath}/humanAddJSP"><input type="button" value="登记" class="button1"/></a></li><br/>
    </ul>
</div>
<div class="bg2">
    <c:choose><c:when test="${!empty list}">
        <table border="1px" cellspacing="0" width="100%">
            <tr>
                <th>姓名</th> <th>手机号码</th> <th>状态</th>
                <th>时间</th> <th>信息</th>
            </tr>
            <c:forEach var="human" items="${list}">
                <tr>
                    <td>${human.name}</td> <td>${human.tel}</td>
                    <td>${human.status}</td><td>${human.time}</td>
                    <td>${human.message}</td>
                </tr></c:forEach>
        </table></c:when>
        <c:otherwise>没有任何信息！</c:otherwise></c:choose>
</div>
</body>
</html>
